<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./css/font-awesome.min.css">
    <link rel="stylesheet" href="./js/jquery-weui-build/lib/weui.min.css">
    <link rel="stylesheet" href="./js/jquery-weui-build/css/jquery-weui.min.css">
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/doctor.css">
    <script src="./js/jquery-weui-build/lib/jquery-2.1.4.js"></script>
    <script src="./js/jquery-weui-build/js/jquery-weui.min.js"></script>
    <script src="./js/common.js"></script>
    <title>会议申请</title>
    <style>
        body {
            background: url("./images/bg1.jpg") center 0 no-repeat;
            background-size: cover;
            background-attachment: fixed;
        }

        body:before {
            background: url("./images/bg1.jpg") center 0 no-repeat;
            background-size: cover;
        }
    </style>
</head>

<body>
    <header class="header">
        <div class="title">
            <h1 class="f14">会议申请</h1>
        </div>
    </header>
    <section class="content content_scroll">
        <!-- <section class="logo_t">
            <div class="logo w">
                <div class="logo_img">
                    <img src="./images/logo.png" alt="">
                </div>
                <div class="log_title">
                    <p>子宫内膜异位症患者</p>
                    <p>院外关爱</p>
                    <p>主办方：中华国际医学交流基金会</p>
                </div>
            </div>
        </section> -->
        <div class="doctor_list">
            <!-- <div class="list_title">
                <h2 class="f12">项目资料列表</h2>
            </div> -->
            <div class="project_meeting">
                <form action="" id="meeting_form">
                    <div class=" input_text">
                        <span class="add-on">
                            <i class="icon-user-md"></i>
                        </span>
                        <input type="text" name="patientNumber" placeholder="医生姓名">
                    </div>
                    <div class=" input_text">
                        <span class="add-on">
                            <i class="icon-phone"></i>
                        </span>
                        <input type="text" name="patientNumber" placeholder="联系电话">
                    </div>
                    <div class=" input_text">
                        <span class="add-on">
                            <i class="icon-calendar"></i>
                        </span>
                        <input type="Date" name="patientNumber" placeholder="会议日期">
                        <div class="Date">会议日期</div>
                    </div>
                    <div class=" input_text">
                        <span class="add-on">
                            <i class="icon-time"></i>
                        </span>
                        <input class="firstTimeInput" type="time" name="patientNumber" placeholder="会议开始时间">
                        <div class="firstTime">会议开始时间</div>
                    </div>
                    <div class=" input_text">
                        <span class="add-on">
                            <i class="icon-time"></i>
                        </span>
                        <input class="endTimeInput" type="time" name="patientNumber" placeholder="会议结束时间">
                        <div class="endTime">会议结束时间</div>
                    </div>
                    <div class=" input_text">
                        <!-- <span class="add-on"><i class="icon-cloud-upload"></i></span> -->
                        <a href="javascript:;" class="icon-cloud-upload">上传文件</a>
                        <input type="file" name="patientNumber" placeholder="会议资料上传">
                    </div>
                </form>
                <button id="project_meeting_form" class="f14">提&nbsp;交</button>
            </div>
        </div>
    </section>
    <div class="bg_model none"></div>
    <div class="modal_content none login_modal_content"></div>
    <div class="weui-loadmore none">
        <i class="weui-loading"></i>
        <span class="weui-loadmore__tips">正在加载</span>
    </div>
    <script>
        $(function () {
            //日期
            $('input[type=Date]').focus(function () {
                var _this = $(this);
                _this.next().hide();
            })
            $('input[type=Date]').blur(function () {
                var _this = $(this);
                if (_this.val() == '' || _this.val() == null) {
                    _this.next().show();
                } else {
                    _this.next().hide();
                }
            })
            $('.firstTimeInput').focus(function () {
                var _this = $(this);
                _this.next().hide();
            })
            $('.firstTimeInput').blur(function () {
                var _this = $(this);
                if (_this.val() == '' || _this.val() == null) {
                    _this.next().show();
                } else {
                    _this.next().hide();
                }
            })
            $('.endTimeInput').focus(function () {
                var _this = $(this);
                _this.next().hide();
            })
            $('.endTimeInput').blur(function () {
                var _this = $(this);
                if (_this.val() == '' || _this.val() == null) {
                    _this.next().show();
                } else {
                    _this.next().hide();
                }
            })

            $('#project_meeting_form').click(function () {
                var username = $('input[name=username]').val();
                var password = $('input[name=password]').val();
                if (username == '' || username == null) {
                    $('.bg_model').fadeIn();
                    $('.modal_content').fadeIn().text('请输入用户名');
                    timer();
                } else if (password == '' || username == null) {
                    $('.bg_model').fadeIn();
                    $('.modal_content').fadeIn().text('请输入密码');
                    timer();
                } else {
                    console.log($('#formLogin').serialize())
                    $.ajax({
                        url: '',
                        type: 'post',
                        data: $('#formLogin').serialize(),
                        beforeSend: function () {
                            $('.weui-loadmore').show();
                            $('.bg_model').show();
                        },
                        success: function (data) {
                            if (data.type == "success") {
                                $('.weui-loadmore').hide();
                                $('.bg_model').hide();
                                window.location.href = './index';
                            } else {
                                // $('.bg_model').fadeIn();
                                // $('.modal_content').fadeIn().text(data.message);
                                // timer();
                            }
                        }
                    })
                }
            })
        })
    </script>
</body>

</html>